package com.youlai.boot.modules.distribution.dto.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * 经营模式分析响应VO
 * 
 * @author xiheforever
 * @since 2025-06-05
 */
@Schema(description = "经营模式分析响应VO")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OperationModeAnalysisResponseVO {

    @Schema(description = "经营模式分析数据列表")
    private List<OperationModeAnalysisDataVO> data;

    @Schema(description = "经营模式分析数据VO")
    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class OperationModeAnalysisDataVO {

        @Schema(description = "经营模式", example = "自营")
        private String operationMode;

        @Schema(description = "品牌数量", example = "89")
        private Integer brandCount;

        @Schema(description = "品牌占比(%)", example = "35.6")
        private BigDecimal brandRatio;

        @Schema(description = "成交金额(万元)", example = "8956.78")
        private BigDecimal transactionAmount;

        @Schema(description = "金额占比(%)", example = "42.3")
        private BigDecimal amountRatio;

        @Schema(description = "平均转化率(%)", example = "18.45")
        private BigDecimal avgConversionRate;

        @Schema(description = "颜色代码", example = "#67c23a")
        private String color;
    }
} 